package com.wang.vedio.adapter.index;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wang.vedio.R;
import com.wang.vedio.net.entity.TuiJianBean;

import java.util.List;

/**
 * 描述：添加类的描述
 *
 *
 * @time 2020/4/7
 */
public class TuiJian1Adapter extends BaseQuickAdapter<TuiJianBean, BaseViewHolder> {

    public TuiJian1Adapter(int layoutResId, @Nullable List<TuiJianBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TuiJianBean item) {
        View videoRela0 = helper.getView(R.id.videoRela0);
        ImageView videoImg0 = helper.getView(R.id.videoImg0);
        TextView videoBfcs0 = helper.getView(R.id.videoBfcs0);
        TextView videoSeconds0 = helper.getView(R.id.videoSeconds0);
        TextView videoTitle0 = helper.getView(R.id.videoTitle0);

        View videoRela1 = helper.getView(R.id.videoRela1);
        ImageView videoImg1 = helper.getView(R.id.videoImg1);
        TextView videoBfcs1 = helper.getView(R.id.videoBfcs1);
        TextView videoSeconds1 = helper.getView(R.id.videoSeconds1);
        TextView videoTitle1 = helper.getView(R.id.videoTitle1);

        View videoRela2 = helper.getView(R.id.videoRela2);
        ImageView videoImg2 = helper.getView(R.id.videoImg2);
        TextView videoBfcs2 = helper.getView(R.id.videoBfcs2);
        TextView videoSeconds2 = helper.getView(R.id.videoSeconds2);
        TextView videoTitle2 = helper.getView(R.id.videoTitle2);

        View videoRela3 = helper.getView(R.id.videoRela3);
        ImageView videoImg3 = helper.getView(R.id.videoImg3);
        TextView videoBfcs3 = helper.getView(R.id.videoBfcs3);
        TextView videoSeconds3 = helper.getView(R.id.videoSeconds3);
        TextView videoTitle3 = helper.getView(R.id.videoTitle3);

        if(item.getVedioList().size()==1){
            videoRela0.setVisibility(View.VISIBLE);
            videoRela1.setVisibility(View.GONE);

        }else if(item.getVedioList().size()==2){

        }else if(item.getVedioList().size()==3){

        }else if(item.getVedioList().size()==4){

        }

        ImageView banner0 = helper.getView(R.id.banner0);
        ImageView banner1 = helper.getView(R.id.banner1);
    }
}
